home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 March
/
CHIP Mart 1997.iso
/
SurfCam
/
SURFCAM.Z
/
TOOLS.LIB
< prev
next >
Wrap
Text File
|
1996-04-01
|
2KB
|
83 lines
// NC Verify sample form tool library
//
// *** FORM TOOLS INFO ***
//
// * Describe each form tool as a series of closed loops,
// each of which must be convex.
// A concave shape must be described as a series of convex
// shapes.
// * Concave arcs should NOT be used.
// * Each tool description consists of a name statement followed
// by one or more loops, each of which can consist of
// several coordinate statements.
// * Description of a loop ends when the coordinates of its
// first point is repeated.
// * You may add blank lines or comments anywhere within a file to
// separate the loops and for visual convenience.
// * Name statement contains the keyword "Name" , the tool name and
// optionally followed by X and Y offsets for the tool holder, e.g:
// e.g: Name SampleTurnTool_1 <0.2> <0.6>
// e.g: Name SampleMillTool_1
// The tool name must be a single word.
// OFFSETS ARE DEFINED FOR TURN TOOLS ONLY.
// * Each coordinate statement is of one of these forms:
// Point x y (point)
// Arc xc yc r (arc)
// * Line segments are implicitly described be two points in a
// row.
// * Each Arc statement MUST be preceded and followed by
// Point statements.
// * Each arc must be less than 180 degrees.
// * Each loop may be either clockwise or couterclockwise.
// * The origin of a form tool's profile it mapped to the CL Point.
// * If a holder is used with a form tool, its origin is also mapped to
// the CL point after being offset by the X and Y offsets on the
// tool's name statement.
// Donut shaped mill form tool. The x and y offsets are 0.0
//
Name MillFormTool_1
Point 0 0
Arc 0 .375 .375
Point .375 .375
Point .375 1
Arc 1.375 1 1
Point 1.375 2
Arc 1.375 2.75 .75
Point 2.125 2.75
Arc 1.375 2.75 .75
Point 1.375 3.5
Point .75 3.5
Point .75 6
Point 0 6
// Simple turn form tool
//
Name TurnFormTool_1 .05 .05
Point 0 0
Point 0 .75
Point .5 1
Point .5 .25
Point 0 0
// Spherical end groove turn tool
//
Name TurnFormTool_2 0.25 0.9
// loop 1
Point 0.0 0.4
Point -0.1732 0.1
Arc 0.0 0.0 0.2
Point 0.0 -0.2
Point 0.5 -0.2
Arc 0.5 0.0 0.2
Point 0.6732 0.1
Point 0.5 0.4
Point 0.0 0.4
// loop 2
Point 0.0 1.4
Point 0.5 1.4
Point 0.5 0.4
Point 0.0 0.4
Point 0.0 1.4